package com.itcast.regi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itcast.regi.dto.DishDto;
import com.itcast.regi.entity.Dish;
import com.itcast.regi.entity.DishFlavor;

import java.util.List;


public interface DishService extends IService<Dish> {

    public void saveWithFlavor(DishDto DishDto);

    //根据id查询菜品信息和口味信息
    public DishDto getByIdWithFlavor(Long id);

    //更新菜品信息，同时更新口味信息
    public void updateWithFlavor(DishDto dishDto);

    public void updateStatu(int status,List<Long> ids);

    public void removeDishAll(String ids);
}
